package jjn.acwing.java_basic;

import java.util.Scanner;

/**
 * @author Jjn
 * @since 2023/9/3 21:55
 */
public class Acwing742 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            int n = scanner.nextInt();
            int[] x = new int[n];
            for (int i = 0; i < n; i++) {
                x[i] = scanner.nextInt();
            }
            int min = x[0], minIndex = 0;
            for (int i = 0; i < n; i++) {
                if (x[i] < min) {
                    min = x[i];
                    minIndex = i;
                }
            }
            System.out.printf("Minimum value: %d\n", min);
            System.out.printf("Position: %d\n", minIndex);
        }
    }
}
